package com.cn.alibaba.controller;

import io.netty.util.Timeout;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.concurrent.TimeUnit;

@RestController
public class FlowLimitController {

    @GetMapping("/testA")
    public String testA(){
        //线程数暂停
        try{
            TimeUnit.MILLISECONDS.sleep(1000);
        }catch (InterruptedException e){
            e.printStackTrace();
        }

        return "---------------testA";
    }

    @GetMapping("/testB")
    public String testB(){
        return "---------------testB";
    }
}
